<?php

namespace app\admin\validate;

use app\common\lib\Captcha;
use think\Validate;

class Department extends Validate
{
    protected $rule = [
        'id' => 'require',
        'status' => 'require',
        'name' => 'require',
        'logo' => 'require',
        'introduce' => 'require',
        'address' => 'require',
    ];

    protected $scene=[
        'create'=>['status','name','logo','introduce','address'],
        'update'=>['id','status','name','logo','introduce','address'],
    ];

    protected $message = [
        'id' => 'ID不能为空',
        'status' => '状态不能为空',
        'name' => '名称不能为空',
        'logo' => 'LOGO不能为空',
        'introduce' => '简介不能为空',
        'address' => '地址不能为空',
    ];
}
